# coding: utf-8

import datetime

from farmer import SQLBase, Model


db = SQLBase('localhost', 'chalet', 3306, 'chalet', 'chalet@inc')


class Post(Model):
    __database__ = db
    __table__ = 'post'

    class Fields:
        id = None
        author_id = None
        content = '{"content": "test default"}'
        status = None
        create_time = datetime.datetime.now
        update_time = datetime.datetime.now
